<?php
$this->breadcrumbs = array(
    'people' => array('index'),
    $model->name,
);

$this->menu = array(
    array('label' => '显示 联络人', 'url' => array('index')),
    array('label' => '新建 联络人', 'url' => array('create')),
    array('label' => '更新 联络人', 'url' => array('update', 'id' => $model->id)),
    array('label' => '删除 联络人', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => '管理 联络人', 'url' => array('admin')),
);
?>

<h1>View Person #<?php echo $model->id; ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        'departmentId',
        'titleID',
        'name',
        'english',
        'mobile',
        'Ext',
        'short',
        'skype',
        'mail',
        array(
            'label' => '照片',
            'type'=>'html',
            'value' => CHtml::image($model->image, '', array("width" => 300)),
        ),
        'memo',
    ),
));
//echo CHtml::image(Yii::app()->request->baseUrl.'/images/123.jpg', 'User', array("width"=>300));
echo CHtml::image(Yii::app()->request->baseUrl . '/images/' . $model->image, '', array("width" => 300));
?>
